// 全局引入
import Skeleton from '@/components/Skeleton'
import Slider from '@/components/Slider'
import Bread from '@/components/Bread'
import BreadItem from '@/components/Bread/Item.vue'
import More from '@/components/More'
import InfiniteLoad from '@/components/InfiniteLoad'
import ImageView from '@/components/ImageView'
import City from '@/components/City'
import Number from '@/components/Number'
import Button from '@/components/Button'
import Checkbox from './CheckBox'
import Message from './Message/index.vue'
import Dialog from '@/components/Dialog'
import Hello from '@/components/Hello'
import Tabs from '@/components/Tabs'
import TabsPanel from '@/components/Tabs/panel.vue'
// vue2 注册插件
// export default {
//   install(Vue) {
//     Vue.component(组件名，组件配置)
//     Vue.component(组件名，组件配置)
//     Vue.component(组件名，组件配置)
//   }
// }
export default {
  install (app) {
    app.component(Skeleton.name, Skeleton)
    app.component(Slider.name, Slider)
    app.component(Bread.name, Bread)
    app.component(BreadItem.name, BreadItem)
    app.component(More.name, More)
    app.component(InfiniteLoad.name, InfiniteLoad)
    app.component(ImageView.name, ImageView)
    app.component(City.name, City)
    app.component(Number.name, Number)
    app.component(Button.name, Button)
    app.component(Checkbox.name, Checkbox)
    app.component(Message.name, Message)
    app.component(Dialog.name, Dialog)
    app.component(Hello.name, Hello)
    app.component(Tabs.name, Tabs)
    app.component(TabsPanel.name, TabsPanel)
  }
}
